print odd and even numbers in java